package com.itheima.domain;

public class Student {
//    1).定义一个学员类，有以下属性：姓名、性别、年龄、分数
////		  无参、全参构造方法，get/set方法
        private String name;
        private String gender;
        private int age;
        private int mark;

    public Student(String line) {
    }

    public Student(String name, String gender, int age, int mark) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.mark = mark;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getMark() {
        return mark;
    }

    public void setMark(int mark) {
        this.mark = mark;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", mark=" + mark +
                '}';
    }
}
